<?php
namespace app\common\model;

use think\Model;
class SscDaili extends Model
{
    protected function initialize()
    {
        parent::initialize();
    }
    /**
     * 代理添加
     * @param unknown $where
     * @param string $order
     */
    public function Dailiyixia($MYSQL_ZIDUAN)
    {
        return SscDaili::name('daili')->insert($MYSQL_ZIDUAN);
    }

     /**
     * 代理信息修改
     * @param $data[array 要修改的信息数组]
     * @param $username [string 要修改的会员姓名]
     */

    public function DailiModify($data=array(),$username)
    {
        return SscDaili::name('daili')->where('username',$username)->update($data);
    }
}